package com.woniuxy.courseclient.client;

import com.woniuxy.core.model.Result;
import com.woniuxy.courseclient.client.dto.CoachLoginDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("coach-server")
public interface CoachFeignClient {

    @GetMapping("/coach/coachInfo/searchCoachByCoachId")
    public Result<CoachLoginDto> searchCoachByCoachId(@RequestParam("coachId") Integer coachId);
}
